package com.xxx.dao;

import com.xxx.entity.Order;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xxx.entity.dto.OrderDto;
import com.xxx.entity.query.OrderQuery;
import com.xxx.entity.save.OrderSave;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xxx
 * @since 2024-11-24
 */

@Mapper
public interface OrderDao extends BaseMapper<Order> {

    List selectByPage(@Param("current") Integer current,
                      @Param("size") Integer size);

    List<OrderDto> selectByCondition(OrderQuery orderQuery);

    Boolean addProduces(OrderSave orderSave);
}
